#include <SoftwareSerial.h>
SoftwareSerial BT(10,11);


void setup() {
  // put your setup code here, to run once:
  pinMode(13,OUTPUT);
  BT.begin(9600);
  BT.println("Hello from Arduino");
}

void loop() {
  // put your main code here, to run repeatedly:
  char a; 
  if (BT.available())
  {
    a=(BT.read());
    if (a=='1')
    {
      digitalWrite(13, HIGH);
      BT.println("LED on");
    }
    if (a=='2')
    {
      digitalWrite(13, LOW);
      BT.println("LED off");
    }
    if (a=='?')
    {
      BT.println("Send '1' to turn LED on");
      BT.println("Send '2' to turn LED on");
    }   
  }
}
